function fn() {
  for (let i = 0; i++; i < 3) {
    console.log(i)
    setTimeout(() => {
      console.log(i)
    }, 1000)
  }
}
